interface ITopBarState {
  isConnect: boolean;
  onConnect: () => void;
  onDisconnect: () => void;
}

class TopBarStateImpl implements ITopBarState {
  isConnect: boolean = false;

  onConnect(): void {
    console.log("Connecting...");
  }

  onDisconnect(): void {
    console.log("Disconnecting...");
  }
}

export const TopBarState = new TopBarStateImpl();
export default TopBarState;
export type { ITopBarState };
